home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / comm / uucp / AmigaUUCP1_16.lha / AmigaUUCP / SlowSetup.DOC < prev    next >
Text File  |  1992-05-08  |  15KB  |  434 lines

  1.  
  2.                 SLOWSETUP.DOC
  3.  
  4.                 Matthew Dillon
  5.                 891 Regal Rd.
  6.                 Berkeley, Ca. 94708
  7.                 USA
  8.  
  9.                 uunet.uu.net!overload!dillon
  10.  
  11.  
  12.             GETTING UUCP UP AND RUNNING FOR REAL
  13.  
  14.  
  15.     This UUCP distribution in general is not for the uninitiated.  That is,
  16.     it is not user friendly.  This particular document outlines a general
  17.     installation procedure.  Be warned that there are a LOT of things you
  18.     will have to do to bring up UUCP on your machine.
  19.  
  20.     This document shows a TYPICAL setup.  You will most likely want to
  21.     modify the example to fit your own needs.  I cover all the points
  22.     though.
  23.  
  24.     (1) You made backups of the distribution floppies, right?  DO NOT
  25.     MODIFY THE DISTRIBUTION FLOPPIES.  The instructions below are
  26.     long and some are complex and you may wish to refer to the
  27.     original distribution diskettes if you accidently mess something
  28.     up.
  29.  
  30.  
  31.     (2A) Installing UUCP on a single floppy system.
  32.  
  33.     Well, it *is* possible, but difficult.    you need to make as much
  34.     space as possible available on the main floppy.
  35.  
  36.     The second distribution disk contains only the source and manual
  37.     pages.    I suggest you shuffle things around a bit.  You already
  38.     have a copy of the first distribution diskette. I suggest you
  39.     format a new disk and put the MAN directory of the second
  40.     distribution disk on it.  Note that there is a MAN directory
  41.     on the boot disk as well but this one contains only dmail.help
  42.     which you need to gain online help from dmail.
  43.  
  44.     The following executables are required on the boot floppy and
  45.     should not be moved off.  You should move as many of the remaining
  46.     executables somewhere else as you can.
  47.  
  48.         Required Executables in C
  49.  
  50.         c/dmail
  51.         c/getty
  52.         c/rmail
  53.         c/uucico
  54.         c/rnews
  55.         c/uucp
  56.         c/dme        (unless you configure your own editor)
  57.         c/sendmail
  58.         c/uux
  59.         c/uuxqt
  60.  
  61.     You will want to change the ASSIGNments in s/startup-sequence
  62.     as follows:
  63.  
  64.         Assign UUSPOOL:    UUCP:SPOOL
  65.         Assign UUMAIL:    UUCP:MAIL
  66.         Assign UUNEWS:    UUCP:NEWS
  67.         Assign UULIB:    UUCP:LIB
  68.         Assign BMS:     UUCP:LIB/BMS
  69.  
  70.     These directories MUST be in nonvoltile storage or your USENET
  71.     node will be unreliable.
  72.  
  73.     (2B) Installing UUCP on a duel floppy system.
  74.  
  75.     In this case very little shuffling is required.  I suggest
  76.     the second floppy be used for UUSPOOL:, UULIB:, UUMAIL:, UUNEWS:,
  77.     GETTY:, and UUPUB:.
  78.  
  79.     Format a new floppy (this will be your second floppy) and create
  80.     directories as follows:
  81.  
  82.         MakeDir df1:spool
  83.         MakeDir df1:mail
  84.         MakeDir df1:mail
  85.         MakeDir df1:news
  86.         MakeDir df1:pub
  87.         MakeDir df1:lib
  88.         MakeDir df1:lib/BMS
  89.         MakeDir df1:lib/BMS/Pub
  90.  
  91.     Modify the Assignments in s/startup-sequence of the boot floppy
  92.     as follows:
  93.  
  94.         Assign UUSPOOL:    df1:spool
  95.         Assign UULIB:    df1:lib
  96.         Assign UUMAIL:    df1:mail
  97.         Assign UUNEWS:    df1:news
  98.         Assign GETTY:    UULIB:
  99.         Assign UUPUB:    df1:pub
  100.         Assign BMS:     df1:lib/bms
  101.  
  102.     Copy df0:lib to df1:lib and either delete or rename df0:lib to
  103.     prevent confusion.  What we have done is move all dynamic storage
  104.     to df1: .. files that will change a lot or require a lot of disk
  105.     space.    Specifically, UULIB: was moved to DF1: because the
  106.     sequence number file is kept in UULIB: and this is updated for
  107.     each mail message sent.
  108.  
  109.     (2B) Installing UUCP on a Hard Drive
  110.  
  111.     Make a directory called UUCP on your hard drive somewhere.  And
  112.     Assign UUCP: to it.   Copy the contents of both distribution
  113.     floppies to your harddrive:
  114.  
  115.         (put first disk in DF0:)
  116.         1> Copy df0: UUCP: ALL CLONE
  117.         (put second disk in DF0:)
  118.         1> Copy df0: UUCP: ALL CLONE
  119.  
  120.     It is easiest to keep all the directories in one place.  Note
  121.     that a MAN directory exists on both distribution floppies, simply
  122.     merge them together.
  123.  
  124.     Merge the startup-sequence on the boot floppy into your master
  125.     startup-sequence.  Make sure you get all the Assigns and that
  126.     they are properly reassigned to the appropriate directory on
  127.     the harddisk.  Most people normally make a master UUCP: assign
  128.     as a reference point to other assigns.
  129.  
  130.     Be sure that UUSPOOL:, UUMAIL:, BMS:, UUNEWS: and UUPUB: are
  131.     assigned to your hard disk instead of ram.
  132.  
  133.     You will most likely want to run DCron and Getty from your
  134.     startup-sequence.  Be sure that UUCP:C is assigned *before*
  135.     these programs are run so they pick up the appropriate path.
  136.  
  137.     If Getty interferes with any terminal program you might use
  138.     you may be forced to BREAK it.    Remember to restart it to
  139.     enable incomming UUCP calls again.
  140.  
  141. DCron
  142.     DCron is an extremely useful utility to run, especially in
  143.     systems with hard disks.  The only thing you have to watch out
  144.     for is to be sure to BREAK it (kill it) before shutting off your
  145.     machine.  DCron writes to its log file and runs other programs
  146.     based on the date and you don't want to accidently turn off your
  147.     machine when DCron has just started up some other program that
  148.     may write to your hard disk.
  149.  
  150.     In the context of UUCP, DCron is normally used to automatically
  151.     poll systems in the wee hours while you are asleep, to trim
  152.     log files automagically, and maybe disable the modem's speaker
  153.     while you are asleep (at least, that is what I use it for).
  154.  
  155.     Most people running UUCP leave their Amiga's on 24 hours a day.
  156.  
  157.                 Other System Directories
  158.  
  159.     Merge the mountlist into your master mountlist and copy any
  160.     devices from l that you do not already have into your
  161.     master l directory.
  162.  
  163.     merge or copy uucp:s/crontab to s:crontab and uucp:s/.edrc to
  164.     s:.edrc .
  165.  
  166.     You can ignore files in uucp:system, they are standard system
  167.     files.
  168.  
  169.         ----    --  -    -   -    -   -    -  --    ----
  170.  
  171.     (3)     Other startup-sequence efficiency considerations
  172.  
  173.     UUCP relies heavily on the Amiga's multitasking capabilities.
  174.     Most programs execute other programs.  Many programs in UUCP:C
  175.     may be made resident as shown by the pure bit being set.  You
  176.     will probably at least want to make C:RUN resident if you haven't
  177.     already.
  178.  
  179.     Depending on available RAM you may want to make certain other
  180.     progams resident.  Here are some suggestions:
  181.  
  182.         uucp:c/dme        ; run by dmail to edit mail
  183.         uucp:c/uuxqt        ; run by uucico to handle received files
  184.         uucp:c/rmail        ; run by uuxqt to handle received mail
  185.         uucp:c/sendmail     ; run by dmail to handle outgoing mail
  186.  
  187.         (note that uucp:c/sendmail and uucp:c/rmail are the same
  188.          executable just renamed)
  189.  
  190.     STACK:    All programs should run with a stack of 8192.  This
  191.     has been tested for all programs except RNews and ANews which
  192.     may require more.
  193.  
  194.     RNEWS:    RNews currently takes a huge amount of memory and may run
  195.     reliably only on machines with at least 1.5MB of ram.  Even with
  196.     1.5MB you may need to run rnews manually instead of having it
  197.     automatically run by uuxqt.  In this case rename the rnews
  198.     executable to something else and create a dummy script file in its
  199.     place (named as 'rnews') with the script bit set.
  200.  
  201.     (4)     System requirements
  202.  
  203.     Be sure you are running at least version 1.3 of the operating
  204.     system.  The main consideration is that you are using at least
  205.     the 1.3 serial device which fixes some bugs that existed in the
  206.     1.2 serial device.
  207.  
  208.     The NULL: device is required, this is in the l directory of
  209.     the boot floppy as already discussed.
  210.  
  211.     The UUSER: device is not required unless you want to start
  212.     getting fancy with the Getty.  This is mainly a programmer's
  213.     tool.
  214.  
  215.     (5)     Getty
  216.  
  217.     Normally one runs a Getty in his startup-sequence on the internal
  218.     serial port (from which you wish to receive calls).
  219.  
  220.     The problems with getty running on multi-port serial devices has
  221.     been fixed!   You should have no problem running one or more
  222.     Getty's on a multi-port serial.device
  223.  
  224.     Currently, Getty uses file locking to arbitrate the serial port. To
  225.     get getty to release the serial port while you are running a COMM
  226.     program, you must use the LOCKSERIAL command.  Please refer to the
  227.     manual page.
  228.  
  229.     Refer to the manual page MAN:Getty for more information (for
  230.     floppy based systems all manual pages are on the second
  231.     distribution diskette).
  232.  
  233.     (6)     SHELL-STARTUP
  234.  
  235.     Assuming you are using the 1.3 Shell, the S:Shell-Startup file
  236.     normally contains at least a Path command and Stack command to
  237.     properly setup a newshell's path and stack.  Be sure the stack is
  238.     at least 8192 for this distribution of UUCP and add the UUCP:C (or
  239.     wherever you have placed the distribution executables) to your path
  240.     list.  Older UUCP distributions (<1.03) required a huge stack, this has
  241.     been fixed.
  242.  
  243.     (7)                   SITE-SETUP CONTROL FILES
  244.  
  245.     The following is a description of control and log files required
  246.     for UUCP and how you must modify them to install your system.
  247.  
  248.     (GETTY: is normally Assign'd to UULIB:)
  249.  
  250.     GETTY:Getty-Header
  251.  
  252.         This file contains the header line that is printed before a
  253.         login: prompt and is typically only two or three lines long.
  254.         The header usually contains your node name and the version of
  255.         the OS you are running under so people calling from term
  256.         programs know who you are.
  257.  
  258.         (Getty can be used to run things other than uucico)
  259.  
  260.         Modify accordingly.
  261.  
  262.     GETTY:Passwd
  263.  
  264.         The password file is used by Getty to authenticate login
  265.         requests.  In the context of UUCP, remote UUCICOs that call
  266.         your machine up will provide a login and password.    Getty
  267.         handles this and if the login is valid and the password matches
  268.         will run the appropriate program found in the password file.
  269.  
  270.         This is also where the directory corresponding to a ~user
  271.         specification is looked up.
  272.  
  273.         Getty also deals with such features as automatic disconnect on
  274.         timeout and logs times for all incomming and outgoing calls.
  275.  
  276.         In a serious system you should first remove all the junk
  277.         entries that come with the distribution.   You need an entry
  278.         for each remote machine you want to be able to call you.  You
  279.         do not necessarily need to give them logins that corrospond to
  280.         their machine names though this is how it is usually done.
  281.  
  282.         In the future other programs will be able to be run from
  283.         a Getty.
  284.  
  285.         Later versions of UUCP will implement MAILER-DAEMON type
  286.         stuff like 'unknown user', in which case the password file
  287.         will be used to define which user names are valid on the
  288.         system.
  289.  
  290.     GETTY:LOGFILE
  291.  
  292.         The logfile is appended to by Getty whenever an incomming
  293.         call occurs or somebody takes over the serial port.  It
  294.         logs connect and disconnect times for incomming calls and
  295.         usage for external programs.
  296.  
  297.     UULIB:Domain
  298.  
  299.         In nearly every case you will not need this file.
  300.  
  301.         Those of you who wish to do domain routing through
  302.         their machine or have more than one default for
  303.         unknown destinations should refer to the manual
  304.         page MAN:Domains.
  305.  
  306.     UULIB:.Signature
  307.  
  308.         .Signature is used by the Mail program and normally appended
  309.         to outgoing mail and news.
  310.  
  311.         Modify accordingly.  DMail can be setup to use an alternate
  312.         file.  ANews will check <user>.signature before falling back
  313.         on .Signature.
  314.  
  315.     UULIB:Seq
  316.  
  317.         The Seq file should exist but otherwise not be modified by
  318.         the user (except for setting it to a "1" once a year).  This
  319.         file is atomically updated and used to provide unique filenames
  320.         and mail IDs for outgoing mail.
  321.  
  322.     UULIB:Security
  323.  
  324.         This file contains a list of allowed directories remote UUCP
  325.         transfers may read and write to.  Refer to the Security manual
  326.         page.  This file never contains the UUSPOOL: directory which
  327.         is implicitly read-write.
  328.  
  329.         You need not modify this file now but should keep it in mind.
  330.         It protects your system in as much as I have been able to
  331.         close the loopholes.  Loopholes might still exist.
  332.  
  333.     UULIB:news.distribution
  334.  
  335.         This file contains a list of news distribution idents for
  336.         various areas and must normally be modified according to
  337.         where you are.. you need to be a UUCP guru to do this.  Most
  338.         people can just leave it alone.
  339.  
  340.     UULIB:Config
  341.  
  342.         This file contains configuration information for many
  343.         executables in UUCP:C and should be modified accordingly.
  344.  
  345.         Be sure you modify at least the following entries.    REFER TO
  346.         THE 'Assigns' MANUAL PAGE.
  347.  
  348.         NodeName
  349.         UserName
  350.         RealName
  351.         NewsFeed    (not required if you don't care about news)
  352.         Organization
  353.         TimeZone
  354.         DefaultNode
  355.         Editor
  356.  
  357.         **** Take some time to pick a node name for yourself.  It
  358.          should be no more than 8 characters long.  Some UUCP sites
  359.          barf at node names longer than 6 chars so if you are not
  360.          sure of your neighbors pick one no more than 6 characters
  361.          long.    Your site name should be in lower case.
  362.  
  363.          In anycase, the first 6 characters MUST be unique.
  364.  
  365.     UULIB:L.Sys
  366.  
  367.         This file contains site information for sites that may call
  368.         you up or you may call up.
  369.  
  370.         You must modify this file appropriately before you can run
  371.         UUCico and other UUCP related programs.  Refer to the 'L.Sys'
  372.         manual page.
  373.  
  374.     UULIB:Aliases
  375.  
  376.         This is a mail aliases file with aproximately the same
  377.         power as /usr/lib/aliases on UNIX systems.    You should
  378.         refer to the 'Aliases' manual page and modify this file as
  379.         appropriate for various defaults like 'postmaster'... to
  380.         whatever user name you pick for yourself.
  381.  
  382.     UUCP:S/Crontab
  383.  
  384.         This is a functional Crontab file for use with the DCron program.
  385.         This file is normally moved to S: (it is useless in UUCP:S).
  386.  
  387.     UUSPOOL:LOGFILE
  388.  
  389.         UUCICO and other programs log errors and other things to
  390.         this file.    Normally you use DCron to clean up this and
  391.         other log files once daily to keep them from getting to large.
  392.  
  393.  
  394.     (8)     TESTING / DMAIL
  395.  
  396.     You will next want to test your UUCP configuration.  If testing
  397.     with a friend's Amiga running the same distribution simply
  398.     email to him, then one of you run uucico -s<remotesystem>
  399.     just like in QuickSetup.DOC, except this time you are using
  400.     the system name he picked instead of 'test1' or 'test2'.
  401.  
  402.     If the initial tests in QuickSetup.DOC worked and the system
  403.     is not working now check the following (common problems):
  404.  
  405.         (a) the login and password in your L.Sys file (that uucico uses
  406.         to login to the remote machine) matches the login and
  407.         password in the remote machine's Getty:Passwd file.
  408.  
  409.         (b) There is an entry for your node in the remote machine's
  410.         L.Sys file and vise versa
  411.  
  412.         (c) The telephone number is correct
  413.  
  414.         (d) the node names are all in lower case
  415.  
  416.         (e) you constructed the email address correctly (nodename!user)
  417.  
  418.     I suggest you get UUCP running with a friend before getting it
  419.     running with a UNIX system as it is easier to test it with a
  420.     friend.
  421.  
  422.     Assuming you email to the user name he picked for his UULIB:Config
  423.     'UserName' entry and he did the same thing to you, entering
  424.     'dmail' without any arguments will bring up the mail shell
  425.     and allow you to read the message after transfer via UUCico
  426.     is complete.  You can check that the email actually arrived
  427.     into the right mail box in UUMAIL: by simply getting a directory
  428.     of UUMAIL:
  429.  
  430.     READ the manual page for DMail for information on the
  431.     construction of mail paths to other systems and users.
  432.  
  433.  
  434.